<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>多选组卷</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
		<load href= "__JS__/jshelper.js" /> 
		<load href="__JS__/jQuery/jquery.js" />
       	<load href="__JS__/jQuery/jquery.form.js" />
	</head>
	<body>	
		<layout name="Auth:header" />
    	<div class="container-fluid">
     		<div class="row-fluid">
  			  <layout name="Auth:leftmenu" />
              	 <div class="span8">
                    <div class="hero-unit">
                  	<h1>多选组卷</h1>
                    <p style="font-size:12px">当前位置：
                    <a href='__APP__/index/index'>主页</a>>
                    <a href='__URL__/index'>后台管理</a>>
                    <a href='__URL__/choose1'>测试管理</a>>
                    <a href='__URL__/testdetail'>试题管理</a>>
                    <a href='__URL__/testpackage/id/{$testid}'>组卷</a>>
                    <a href="__URL__/nchoicedetail1">多选组卷	</a>
                    </p>
                  </div>	
          <form method="get" action="__URL__/nchoicedetail/id/{$testid}" class="form-inline">
            <input type="text" name="name"  placeholder="题目">
          
      		<input type="text" name="nname"  placeholder="编辑者">
           <code>所属课程</code>
            <select name="cname">
              <option ></option>
              <volist name='cnlist' id='vo1'>
                <option value =	{$vo1.name}>{$vo1.name}</option>
              </volist>
            </select>
            <input name="submit" type="submit" value="查询" class="btn btn-info">
          </form>
			<!--显示题目-->
				<table width="100%" class="table table-striped table-bordered table-condensed">
					<thead>
						<tr id="table_nchoice_show_title">
							<th>题目名称</th>
							<th>所属课程</th>
							<th>编辑者</th>
						</tr>
					</thead>
					<load href"__PUBLIC__/js/list_show.js">
					<form id="form2" name="form2" method="post" action="__URL__/nchoicet_add">
					<input type='hidden' name='testid' value='{$testid}'>
					<tbody id="tab">
						<volist name='list' id='vo' >
							<tr id="table_nchoice_show">
							<if condition="$vo.isselect eq 0">
								<td><input type='checkbox' name='id[]' value="{$vo.id}">{$vo.name}</td>
							<else/>
								<td>(已添加){$vo.name}</td>
							</if>
								<td>{$vo.cname}</td><!--所属课程-->
								<td>{$vo.nname}</td><!--所属课程-->
								<td style="display:none">{$vo.id}</td>	<!--题目ID-->
							</tr>
						</volist>
					</tbody>
					<input class="btn btn-info" type="button" onClick="javascript:for(var i=0;i<this.form.length;i++)this.form[i].checked=1;" value='全选'>|
					<input class="btn btn-primary" type="button" onClick="javascript:for(var i=0;i<this.form.length;i++)this.form[i].checked=0;" value='取消全选'>|
					<input class="btn btn-info" type="button" onClick="javascript:for(var i=0;i<this.form.length;i++)this.form[i].checked=!this.form[i].checked;" value='反选'>
					<!--  试卷名：
	            	<select name="testid">
	              		<volist name='tlist' id='vo1'>
	                		<option value =	{$vo1.id}>{$vo1.name}</option>
	              		</volist>
	           		 </select>  -->
                     &nbsp;
					<input type="submit" name="Submit" value="提交"  align="right" style="width:80px" class="btn btn-success"> 
				</form>
				</table>
			
				<p class="navbar-text pull-right">{$page}</p>
		</div>
	</div>
   </div>
	</body>
</html>